###
 # @Author: your name
 # @Date: 2021-10-28 19:27:06
 # @LastEditTime: 2022-02-28 17:36:48
 # @LastEditors: Please set LastEditors
 # @Description: In User Settings Edit
 # @FilePath: \V9_Dev\deploy.bash
### 
#!/usr/bin/env sh

set -e

# 生成静态文件
npm run build:prod

# 进入生成的文件夹
cd dist

# 如果是发布到自定义域名
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# 如果发布到 https://<USERNAME>.github.io/<REPO>
git push -f https://gitee.com/cj6209577/cwind-demo.git master:gh-pages

cd -
